<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1" /> 
<title>微信支付</title>
<script src="__PUBLIC__/js/jquery/jquery-2.0.3.min.js"></script>
</head>
<body>	
	
	<img alt="模式二扫码支付" src="http://paysdk.weixin.qq.com/example/qrcode.php?data=<?php echo urlencode($url);?>" style="width:150px;height:150px;"/>
	
</body>
<script>
$(function(){
	window.setInterval(function(){
		$.post(
			"{:url('/get_order_status')}",
			{
				out_trade_no:"{$trade_no}"
			},
			function(d){
				if(d=='pay_suc'){
					alert('付款成功');					
									
					parent.window.art.dialog.list['apply'].close();
					
				}
			}
		);
	}, 2000); 
});	
</script>
</html>